package com.meilai.project.dto.business.installOrder;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.meilai.project.dto.base.PageReq;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author xchen
 * @since 2022-04-04
 */
@Data
@ApiModel
public class WorkerRepairPointDTO extends PageReq {
    @ApiModelProperty("不用传")
    private Long id;

    @ApiModelProperty("工单名称")
    private String name;

    @ApiModelProperty("截止时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime deadline;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("本次涉及到的workerSubmitIdList")
    private List<Long> workerSubmitIdList;

    @ApiModelProperty("repairDetailList")
    private List<WorkerRepairPointDetailDTO> repairDetailList;

}
